package vip.ifmm.lehouse.common.model;

import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

@ToString
public class Commodity implements Serializable {

    private static final long serialVersionUID = -5026967332449938478L;

    private Integer commodityId;

    private String commodityName;

    private String commodityPrice;

    private String commodityPriceDiscount;

    private String commodityDescription;

    private Integer commodityDetailId;

    private Integer commodityTypeId;

    private Integer commodityHotScore;

    private String commodityThumbnail;

    private Short commodityStatus;

    private Date commodityCreateTime;

    private Date commodityUpdateTime;

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName == null ? null : commodityName.trim();
    }

    public String getCommodityPrice() {
        return commodityPrice;
    }

    public void setCommodityPrice(String commodityPrice) {
        this.commodityPrice = commodityPrice == null ? null : commodityPrice.trim();
    }

    public String getCommodityPriceDiscount() {
        return commodityPriceDiscount;
    }

    public void setCommodityPriceDiscount(String commodityPriceDiscount) {
        this.commodityPriceDiscount = commodityPriceDiscount == null ? null : commodityPriceDiscount.trim();
    }

    public String getCommodityDescription() {
        return commodityDescription;
    }

    public void setCommodityDescription(String commodityDescription) {
        this.commodityDescription = commodityDescription == null ? null : commodityDescription.trim();
    }

    public Integer getCommodityDetailId() {
        return commodityDetailId;
    }

    public void setCommodityDetailId(Integer commodityDetailId) {
        this.commodityDetailId = commodityDetailId;
    }

    public Integer getCommodityTypeId() {
        return commodityTypeId;
    }

    public void setCommodityTypeId(Integer commodityTypeId) {
        this.commodityTypeId = commodityTypeId;
    }

    public Integer getCommodityHotScore() {
        return commodityHotScore;
    }

    public void setCommodityHotScore(Integer commodityHotScore) {
        this.commodityHotScore = commodityHotScore;
    }

    public String getCommodityThumbnail() {
        return commodityThumbnail;
    }

    public void setCommodityThumbnail(String commodityThumbnail) {
        this.commodityThumbnail = commodityThumbnail == null ? null : commodityThumbnail.trim();
    }

    public Short getCommodityStatus() {
        return commodityStatus;
    }

    public Commodity setCommodityStatus(Short commodityStatus) {
        this.commodityStatus = commodityStatus;
        return this;
    }

    public Date getCommodityCreateTime() {
        return commodityCreateTime;
    }

    public void setCommodityCreateTime(Date commodityCreateTime) {
        this.commodityCreateTime = commodityCreateTime;
    }

    public Date getCommodityUpdateTime() {
        return commodityUpdateTime;
    }

    public void setCommodityUpdateTime(Date commodityUpdateTime) {
        this.commodityUpdateTime = commodityUpdateTime;
    }
}